package yc.star.forum.model;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Schema(description = "帖子信息")
@Data
public class Article {
    private Long id;

    @Schema(description = "关联板块编号")
    private Long boardId;

    @Schema(description = "发帖⼈")
    private Long userId;

    @Schema(description = "帖⼦标题")
    private String title;

    @Schema(description = "访问量")
    private Integer visitCount;

    @Schema(description = "回复数")
    private Integer replyCount;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "状态")
    private Byte state;

    @Schema(description = "是否删除")
    private Byte deleteState;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "帖⼦正⽂")
    private String content;

    // 关联系对象-作者
    @Schema(description = "⽤⼾信息")
    private User user;

    // 关联系对象-板块
    @Schema(description = "板块信息")
    private Board board;

    // ⽤⼾是不是作者
    @Schema(description = "⽤⼾是不是作者")
    private Boolean Own;

}